package com.example.model;

/**
 * @Description: 权重对象
 * @Author ZYX
 * @Date 2022/2/27 16:06
 * @Version 1.0
 */
public class ItemWithWeight<T> {

    T item;
    double weight;

    public ItemWithWeight() {
    }

    public ItemWithWeight(T item, double weight) {
        this.item = item;
        this.weight = weight;
    }

    public T getItem() {
        return item;
    }

    public void setItem(T item) {
        this.item = item;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

}
